import requests from '@/api/request'
// const SERVER_URL = 'user'
export default {
  // 查询
  postQueryCertData (data) {
    return requests({
      url: `/v1/api/pay/settle/clear/cert/queryByCondition`,
      method: 'post',
      data
    })
  },
  // 通过ID查询结清证明影像
  postQueryByIdCertImage (params) {
    return requests({
      url: `/v1/api/pay/settle/clear/cert/queryImage`,
      method: 'get',
      params
    })
  },
  // 提前结清查询
  certDetailsInfo (data) {
    return requests({
      url: `/v1/api/pay/repay/repayDetailQuery`,
      method: 'post',
      data
    })
  },
  // 重新发送结清证明
  postQueryByCaseIdLoanData (data) {
    return requests({
      url: `/v1/api/pay/settle/clear/cert/reSend/${data}`,
      method: 'get'
    })
  },
  // 通过ID查询申请件基本信息
  getBasicInfoData (data) {
    return requests({
      url: `v1/api/case/case/basic/queryById/${data}`,
      method: 'get'
    })
  },
  // 通过caseid查询客户信息
  getCustomerInfo (data) {
    return requests({
      url: `v1/api/case/case/customer/queryByCaseId/${data}`,
      method: 'get'
    })
  }
}
